package com.loong.shop.common.backend.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class GoodsSizeNameParam {
    /**
     * 规格名称id
     */
    @NotNull(message = "更新时规格名称id不能为空",groups = {CommonUpdate.class})
    private Long id;

    /**
     * 规格名称
     */
    @NotBlank(message = "新增时规格名称不能为空",groups = {CommonInsert.class})
    private String name;

    /**
     * 店铺id
     */
    @NotNull(message = "新增时店铺id不能为空",groups = {CommonInsert.class})
    private Long shopId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
   // @NotNull(message = "新增时创建时间不能为空",groups = {CommonInsert.class})
    private Date createTime;

    /**
     * 更新时间
     */
   // @NotNull(message = "更新时更新时间不能为空",groups = {CommonUpdate.class})
    private Date lastUpdateTime;
}